home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 25
/
Aminet 25 (1998)(GTI - Schatztruhe)[!][Jun 1998].iso
/
Aminet
/
util
/
shell
/
ShellScr.lha
/
ShellScr
/
src
/
defarg.asm
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Assembly Source File
|
1998-04-10
|
330 b
|
12 lines
; a shorter (code and execution-wise) replacement for 'IF x THEN x ELSE y'.
; instead of 'IF x THEN x ELSE y', write 'defarg(x,y)'
; particularly useful for using 'defaults' to arguments in ReadArgs().
; eg say_hello(defarg(arg[HELLO], 'Kevin'))
xdef defarg_ii
defarg_ii
move.l 8(sp),d0
bne.s .done
move.l 4(sp),d0
.done rts